﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QueryCommon
{
    public class Pub
    {
        //每页记录条数，默认值是10
        public static int PageRowCount = 10;

        public static int GetPageCount(int ResultCount)
        {
            int pageCount = ResultCount % PageRowCount == 0 ? ResultCount / PageRowCount : ResultCount / PageRowCount + 1;
            return pageCount;
        }
    }
}
